local skynet = require "skynet"
local cluster = require "skynet.cluster"
require "skynet.manager"

local filelog = require "filelog"
local configdao = require "configdao"

skynet.start(function()
	skynet.error("hallnode start")
	skynet.newservice("nodelog")
	local confsharesvr = skynet.newservice("confshare")
	skynet.call(confsharesvr, "lua", "start")

	local hallnode = configdao.get_cfgsvrs_key("hallnode")
	skynet.newservice("debug_console",hallnode.debug_console_port)

	skynet.name(".router", skynet.uniqueservice("router"))	
	skynet.name(".code2nodetable", skynet.uniqueservice("code2nodetable"))	
	cluster.open("hallnode")

	skynet.exit()
end)
